<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<#assign base=request.contextPath  />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="${base}/assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="${base}/css/style.css"/>
        	<link rel="stylesheet" href="${base}/assets/css/ace.min.css" />
        <link rel="stylesheet" href="${base}/assets/css/font-awesome.min.css" />
        <link href="${base}/assets/css/codemirror.css" rel="stylesheet">
		<!--[if IE 7]>
    <link rel="stylesheet" href="${base}/assets/css/font-awesome-ie7.min.css"/>
    <![endif]-->
        <!--[if lte IE 8]>
    <link rel="stylesheet" href="${base}/assets/css/ace-ie.min.css"/>
    <![endif]-->
		<script src="${base}/assets/js/ace-extra.min.js"></script>
		<!--[if lt IE 9]>
    <script src="${base}/assets/js/html5shiv.js"></script>
    <script src="${base}/assets/js/respond.min.js"></script>
    <![endif]-->
        		<!--[if !IE]> -->
		<script src="${base}/assets/js/jquery.min.js"></script>
		<!-- <![endif]-->
           	<script src="${base}/assets/dist/echarts.js"></script>
        <script src="${base}/assets/js/bootstrap.min.js"></script>
       <title></title>
       </head>		
<body>
<div class="page-content clearfix">
 <div class="alert alert-block alert-success">
  <button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
  <i class="icon-ok green"></i>欢迎使用<strong class="green">安恩贝后台管理系统<small>(v1.2)</small></strong>
 </div>
 
 <!--记录-->
 <div class="clearfix" id="index">

 </div>
     </div>
    <img src="${base}/img/baobao2.jpg"   width="200"  height="140"  />
    <img src="${base}/img/logos.png"   width="600"  height="100" />
    <img src="${base}/img/baobao.jpg"  width="200"  height="140" />

  <a class="Ziti">做个好月子，健康一辈子!</a>
  
</body>
</html>
<script type="text/javascript">
//面包屑返回值
var index = parent.layer.getFrameIndex(window.name);
parent.layer.iframeAuto(index);
$('.no-radius').on('click', function(){
	var cname = $(this).attr("title");
	var chref = $(this).attr("href");
	var cnames = parent.$('.Current_page').html();
	var herf = parent.$("#iframe").attr("src");
    parent.$('#parentIframe').html(cname);
    parent.$('#iframe').attr("src",chref).ready();;
	parent.$('#parentIframe').css("display","inline-block");
	parent.$('.Current_page').attr({"name":herf,"href":"javascript:void(0)"}).css({"color":"#4c8fbd","cursor":"pointer"});
	//parent.$('.Current_page').html("<a href='javascript:void(0)' name="+herf+" class='iframeurl'>" + cnames + "</a>");
    parent.layer.close(index);
	
});
     $(document).ready(function(){
		 
		  $(".t_Record").width($(window).width()-640);
		  //当文档窗口发生改变时 触发  
    $(window).resize(function(){
		 $(".t_Record").width($(window).width()-640);
		});
 });

$.ajax({
    type : "POST", //提交方式
    url : "${base}/user/findMenu",//路径
    data :{username:$("#username").val(),password:$("#userpwd").val()},
    success : function(data) {//返回数据根据结果进行相应的处理
        data=JSON.stringify(data);
        //把后台查出的用户所有信息转成json对象  包括用户角色 和角色所拥有的菜单
        var dataJson=JSON.parse(data);
        //获取该角色的所有菜单
        var menu=dataJson.roles.menuResourses;

      //如果有板块权限 才开启板块的方框
        for(var i=0;i<menu.length;i++){
            if(menu[i].menuType==2){
                $("#index").html(
                        '<div class="home_btn" >'+
                        '<div id="bankuai">'+
                        '</div>'+
                        '</div>'
                );
            }
        }
        for (var i=0;i<menu.length;i++){
            if(menu[i].menuType==2){
                $("#bankuai").append(
                       '<a href="${base}/'+menu[i].menuUrl+'" title="'+menu[i].menuName+'" class="'+menu[i].menuClass+'">'+
                           '<i class="bigger-200"><img src="${base}/img/icon-grxx.png" /></i>'+
                            '<h5 class="margin-top">'+menu[i].menuName+'</h5>'+
                        '</a>'
                )

            }
        }
    }
});
 </script>   